package me.zhao.subscribe.weatherObserver;

import java.util.ArrayList;
import java.util.List;

public abstract class AbstractWeatherSubject {
	protected List<Observer> observerList = new ArrayList<Observer>();
	
	public void attach(Observer observer){
		observerList.add(observer);
	}
	
	public void detach(Observer observer){
		observerList.remove(observer);
	}
	
	protected abstract void notifyObservers();
}
